package com.molichuxing.services.infrastructure.service.impl;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.molichuxing.services.infrastructure.bean.GztDrivingLicenseRequestLogBean;
import com.molichuxing.services.infrastructure.dao.GztDrivingLicenseRequestLogMapper;
import com.molichuxing.services.infrastructure.dto.request.create.GztDrivingLicenseRequestLogCreateDto;
import com.molichuxing.services.infrastructure.service.GztDrivingLicenseRequestLogService;
/**
 * 
 * @author liyg
 * 国政通驾驶证服务实现类
 * 2019-09-20
 *
 */
@Service("gztDrivingLicenseRequestLogService")
public class GztDrivingLicenseRequestLogServiceImpl implements GztDrivingLicenseRequestLogService{


	@Autowired
	private GztDrivingLicenseRequestLogMapper gztDrivingLicenseRequestLogMapper;
	
	/**
	 * 保存
	 * @param createDto
	 * @return
	 */
	@Override
	public Integer create(GztDrivingLicenseRequestLogCreateDto createDto) {
		GztDrivingLicenseRequestLogBean bean=new GztDrivingLicenseRequestLogBean();
		BeanUtils.copyProperties(createDto, bean);
		gztDrivingLicenseRequestLogMapper.create(bean);
		return bean.getId();
	}
}
